<?php
include '../php/functies.php';
$error = false;
$send = false;
//Taal instellen
if(isset($_SESSION['main'])){
	$mainarray = $_SESSION['main'];
	$taal = $mainarray['taal'];
}else{
	if(isset($_COOKIE['language'])){
		$taal = $_COOKIE['language'];
		$mainarray['taal'] = $taal;
		$_SESSION['main'] = $mainarray;
	}else{
		$taal =  getDefaultLanguage();
		$mainarray['taal'] = $taal;
		$_SESSION['main'] = $mainarray;
		$expire=time()+60*60*24*30;
		setcookie('language', $taal, $expire);
	}//if
}//if
require('../language/'.$taal.'.php');
?>
<section class="maincontent" id="seccontact">
	<h2>Contact</h2>
   <p><?php echo lang('textcontact'); ?> </p>
	<div class="form">
    <form method="post" name="sendmessage" id="contactform" action="#contact">
      <p>
         <label for="name"><?php echo lang('contactname'); ?><em>*</em>: </label>
         <input type="text" id="name" name="name" class="required" minlength="2" placeholder="Name" />
      </p>
      
      <p>  
         <label for="email">E-mail<em>*</em>: </label>
         <input type="email" id="email" name="email" class="required email" minlength="5" placeholder="email@example.com" />
      </p>
       
       <p> 
         <label for="subject">Website: </label>
         <input type="text" id="website" name="website" class="url" minlength="5" placeholder="http://www.example.com" />
		</p>
      
      <p> 
         <label for="subject"><?php echo lang('contactsubject'); ?><em>*</em>: </label>
         <input type="text" id="subject" name="subject" class="required" placeholder="Subject" />
		</p>
      
      <p>        
         <label for="message"><?php echo lang('contactmessage'); ?><em>*</em>: </label> 
         <textarea name="message" id="message" class="required"></textarea>
      </p>
      
      <p>
      	<input type="submit" value="<?php echo lang('contactsend'); ?>" />
      </p>
    </form>
  </div>
</section>
<script type="text/javascript">
$(document).ready(function(){
	$("#contactform").validate();
});
</script>
